package net.wanho.study.dao;

import net.wanho.study.dto.UserDTO;
import net.wanho.study.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Author：汤小洋
 * Date：2023-06-30 10:36
 * Description：<描述>
 */
public interface UserDao {

    public void insertUser(User user);

    public void insert(User user);

    public void updateUser(User user);

    public void deleteById(Integer id);

    public User selectById(Integer id);

    public List<User> selectAll();

    public List<User> selectByUsername(String username);

    public User selectById2(Integer id);

    public User selectById3(Integer id);

    public User selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    public User selectByUsernameAndPassword2(UserDTO userDTO);

    public User selectByUsernameAndPassword3(Map<String,Object> params);

    public List<User> selectOrder(@Param("column") String column,@Param("order") String order);

    public List<User> selectByParams(User user);

    public List<User> selectByParams2(User user);

    public List<User> selectByParams3(User user);

    public void updateUser2(User user);

    public void insertUser2(User user);

    public List<User> selectByIds(Integer[] ids);
}
